<?php
namespace app\live\controller;

use helper\RedisHandler;

class TestController extends BaseController
{
  protected $redisHandler;

  /**
   * 初始化
   */
  public function __construct()
  {
    parent::__construct();
    $this->redisHandler = RedisHandler::getInstance()->handler();
  }

  public function index(){
    $this->redisHandler->set('key_name','我是中国人');
    dump($this->redisHandler->get('key_name'));
  }

}